package com.mine.demo.fun;

public class Test {
    public static void main(String[] args) {
        // 测试顾客 A
        Supermarket supermarketA = new Supermarket(2, 3, 1);
        System.out.println("顾客 A 需支付：" + supermarketA.calculateTotalCost());

        // 测试顾客 B
        Supermarket supermarketB = new Supermarket(3, 2, 2);
        System.out.println("顾客 B 需支付：" + supermarketB.calculateTotalCost());

        // 测试顾客 C
        Supermarket supermarketC = new Supermarket(5, 4, 3);
        System.out.println("顾客 C 需支付：" + supermarketC.calculateTotalCost());

        // 测试顾客 D
        Supermarket supermarketD = new Supermarket(6, 7, 8);
        System.out.println("顾客 D 需支付：" + supermarketD.calculateTotalCost());
    }
}
